package org.example.feign;

import org.example.domain.UserDept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@FeignClient(path = "department",name = "department")
public interface UserDeptFeign {

    @RequestMapping("getDeptName")
    List<UserDept> getDeptName();
}
